package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 融云用户注册
 *
 * @author 刘聪
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "融云用户注册")
@TableName("tz_melt_cloud_user")
@Builder
public class MeltCloudUser implements Serializable {

    /**
     * 融云用户id
     */
    @Schema(description = "融云用户id")
    @TableId(type = IdType.INPUT)
    private String id;


    /**
     * 融云用户名称
     */
    @Schema(description = "融云用户名称")
    @TableField(value = "user_name")
    private String userName;

    /**
     * 融云用户token
     */
    @Schema(description = "融云用户token")
    @TableField(value = "user_token")
    private String userToken;

    /**
     * 融云用户头像
     */
    @Schema(description = "融云用户头像")
    @TableField(value = "user_portrait")
    private String userPortrait;

    /**
     * 注册日期
     */
    @Schema(description = "注册日期")
    @TableField(value = "create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 删除标记
     */
    @Schema(description = "删除标记")
    @TableField(value = "del_flag")
    private String delFlag;


    @TableField(exist = false)
    @Schema(description = "是否群组创建人")
    private boolean isGroupCreator;

    @TableField(exist = false)
    @Schema(description = "群昵称")
    private String groupNikeName;

    @TableField(exist = false)
    @Schema(description = "群成员禁言状态")
    private boolean status;

    @TableField(exist = false)
    @Schema(description = "用户在线状态")
    private boolean  onlineStatus;

    @TableField(exist = false)
    @Schema(description = "是否是管理员状态")
    private String isManage;

    @TableField(exist = false)
    @Schema(description = "是否开通私信")
    private String massageSwitch;
    @TableField(exist = false)
    @Schema(description = "是否实名")
    private Boolean IsHasRealName;

    @TableField(exist = false)
    @Schema(description = "备注名")
    private String remark;

}
